import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description：
 * User：user
 * DATE:2021-11-01
 * Time:17:57
 */

class Student implements Comparable<Student>{
    public  String name;
    public  String classes;
    public double score;

    public Student(String name, String classes, double score) {
        this.name = name;
        this.classes = classes;
        this.score = score;
    }
    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", classes='" + classes + '\'' +
                ", score=" + score +
                '}';
    }

    @Override
    public int compareTo(Student o) {
        return this.name.compareTo(o.name);
    }
}
public class Test5 {


    public static void func(String str1,String str2){
        List<Character>  list = new ArrayList<>();
        for (int i = 0; i < str1.length(); i++) {
            char ch = str1.charAt(i);
            if((!str2.contains(ch+""))){//必须是字符串
                list.add(ch);
            }
        }
        //System.out.println(list);
        for(Character character:list){
            System.out.print(character);
        }
    }

    public static void main(String[] args) {
        func("welcome to bit","cmoe");
    }
    public static void main1(String[] args) {
        List<Student> list = new ArrayList<>();
        list.add(new Student("bit","1",99.8));
        list.add(new Student("ait2","2",90.8));
        list.add(new Student("cit3","3",89.8));
        System.out.println(list);
        //Collections.sort(list);
        Collections.reverse(list);
        System.out.println(list);

        List<Integer> list2 = new ArrayList<>();
        list2.add(1);
        list2.add(3);
        list2.add(2);
        Collections.sort(list2);
        System.out.println(list2);
    }
}
